<?php
use app\models\ActivityApply;
use app\models\Comment;
use yii\helpers\Html;
use yii\helpers\Url;

/* @var $this \yii\web\View */
/* @var $model \app\models\Activity */
?>

<div class="banner-img">
    <img src="<?= $model->getThumb(); ?>" width="100%"/>
</div>
<div class="bgfff">
    <div class="info-title">
        <h1><?= Html::encode($model->title); ?></h1>
        <p>浏览<?= $model->views; ?>次</p>
    </div>
</div>
<ul class="mui-table-view mui-h5" style="margin-bottom: 15px;">
    <li class="mui-table-view-cell">
        <i class="iconfont red">&#xe610;</i>
        <?= date('m/d h:i', $model->start_time); ?> ~ <?= date('m/d h:i', $model->end_time); ?>
    </li>
    <li class="mui-table-view-cell">
        <i class="iconfont red">&#xe619;</i> <?= Html::encode($model->getFullAddress()); ?>
    </li>
</ul>

<div class="info-screen" data-href="<?= $model->user->getIsStudent() ? '' : Url::to(['company/', 'uid' => $model->uid]); ?>">
    <div class="mui-media">

        <img class="mui-media-object mui-pull-left" src="<?= $model->user->getAvatar(); ?>">
        <div class="mui-media-body">
            <?= $model->user->uname; ?>
            <p><?= \app\utils\BaseUtils::convertText($model->user->profile->experience1, 45); ?></p>
        </div>

    </div>
    <div class="fflex">
        <div class="col">
            <b><?= $model->favorites; ?></b>
            <span class="mui-tab-label">收藏人数</span>
        </div>
        <div class="col">
            <b><?= $model->apply_number; ?></b>
            <span class="mui-tab-label">报名人数</span>
        </div>
        <div class="col">
            <b><?= $model->likes; ?></b>
            <span class="mui-tab-label">点赞数</span>
        </div>
    </div>

</div>